<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <button-counter></button-counter>
    <test></test>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
    Vue.component('button-counter', {
        props: ['title'],
        data: function() {
                return {}
            }
        ,
        template: '<div><h1>hi...</h1></div>'
    })

    var vm = new Vue({
        el: "#app",
        data: {},
        methods: {
            clicknow: function (e) {
                console.log(e)
            }
        },
        components: {
            test: {
                template: "<h2>h2...</h2>"
            }
        }
    })
</script>
</body>
</html>